package leo.weixin.entity.menu;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

/**
 * 默认实现的 button
 * 显示方式为底部微信菜单栏样式
 */
@Data
@Accessors(chain = true)
public class Button extends AbstractButton {

    private List<AbstractButton> button ;

    public Button(){
        button = new ArrayList<>();
    }

    public Button add(AbstractButton b){
        button.add(b);
        System.out.println("父类: size:"+getButton().size());
        return this;
    }
}
